package com.jiuli.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jiuli.model.dto.spaceuser.SpaceUserAddRequest;
import com.jiuli.model.dto.spaceuser.SpaceUserQueryRequest;
import com.jiuli.model.pojo.SpaceUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiuli.model.vo.SpaceUserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 空间用户关联 服务类
 * </p>
 *
 * @author jiuli
 * @since 2025-01-21
 */
public interface ISpaceUserService extends IService<SpaceUser> {

    long addSpaceUser(SpaceUserAddRequest spaceUserAddRequest);

    void validSpaceUser(SpaceUser spaceUser, boolean add);

    SpaceUserVO getSpaceUserVO(SpaceUser spaceUser, HttpServletRequest request);

    List<SpaceUserVO> getSpaceUserVOList(List<SpaceUser> spaceUserList);

    QueryWrapper<SpaceUser> getQueryWrapper(SpaceUserQueryRequest spaceUserQueryRequest);
}
